package com.smarth.zhizulian.app;

import android.os.Bundle;

import com.smarth.zhizulian.entity.EventBean;

import org.simple.eventbus.EventBus;
import org.simple.eventbus.Subscriber;

/**
 * Created by 18865 on 2017/12/26.
 */

public abstract class EventFragment extends BaseFragment {
    @Override
    protected void onCreateView(Bundle savedInstanceState) {
        super.onCreateView(savedInstanceState);
        EventBus.getDefault().register(this);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        EventBus.getDefault().unregister(this);
    }

    @Subscriber(tag = BaseConfig.EventTag.ON_LOGIN)
    protected void onLogin(EventBean eb) {

    }
}
